package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.vo.DUserVo;
import cn.huiyunche.base.service.vo.PageVo;

import java.util.Map;

public interface TmsDUserService {
    /**
     * 人送车－查询用户列表
     *
     * @param pageVo
     * @param dUserVo
     * @return
     * @throws Exception
     */
    Map<String, Object> userList(PageVo pageVo, DUserVo dUserVo) throws Exception;

    /**
     * 禁用用户
     *
     * @param sId
     * @param dId
     * @return
     * @throws Exception
     */
    int disabled(Long sId, Long dId) throws Exception;

    /**
     * 启用用户
     *
     * @param sId
     * @param dId
     * @return
     * @throws Exception
     */
    int enabled(Long sId, Long dId) throws Exception;

    /**
     * 修改手机号
     *
     * @param sId
     * @param dId
     * @param phone
     * @return
     * @throws Exception
     */
    int modifyPhone(Long sId, Long dId, String phone) throws Exception;

    /**
     * 绑定油卡
     *
     * @param sId
     * @param oilCardCode
     * @return
     * @throws Exception
     */
    Long bindOilCard(Long sId, String oilCardCode) throws Exception;

    Map<String, Object> exportList(DUserVo dUserVo) throws Exception;

    int modifyLicense(String license, String phone);
}
